<?php
// 1 连接mysql服务器
$conn = mysqli_connect('localhost','root','root','qianshou') or die("失败");
// 2 设置utf8
mysqli_query($conn,'set names utf8');